<?php
/**
 * 
 * 验证器
 * 
 * */
namespace app\admin\validate;
use think\Validate;

class Banner_validate extends Validate
{
    //规则
    protected $rule = [
        'title'          => 'require',
        'image'          => 'require',
        'url'          => 'require|url',
        
      ];
    
    //自定义提示信息
    protected $message = [
        'title.require'       =>  '标题不能为空!',
        'image.require'          => '图片不能为空',
        'url.require'          => '链接地址不能为空',
        'url.url'          => '请填写正确的域名或者IP',
        
       ];
}